1. Click the current target to highlight it, then select Edit -> Duplicate from the menu bar.



2. Click the new target to highlight it, then select File -> Get Info from the menu bar.



3. Rename the new target to a name of your choice. This example will use the arbitrary name "object".



4. Click the Build tab and change the Product Name to match the name from step 3 (i.e. "object"). Close the inspector when finished.



5. Click the Source folder to Highlight it, then select File -> New File... from the menu bar.



6. Create a new C file.



7. Name the new file to match the new target name (i.e. "object.c") and uncheck Also create "object.h". In the Targets: pane uncheck the old target "obj1" and check the new target "object".



8. Add code to the new file and compile when finished.